<%
################################################################################
# NOTE: It is STRONGLY suggested that if you wish to customize the look and feel
# of your Helpy, that you create a custom theme instead.  This will allow
# you to override any views or styles you wish to, without compromising your
# ability to upgrade in the future
################################################################################
%>

<% if user_signed_in? %>
  <% if @forum.layout == "table" %>
	  $('#upvote_<%= @topic.id %>').text("<%= @topic.points %>");
	<% else %>
	  $('#upvote_<%= @topic.id %>').text("<%= t(:upvote, count: @topic.points) %>");
	<% end %>
<% else %>
  $('.login-link').click();
<% end %>
